var express = require('express');
var router = express.Router();
const connection = require('../database/mysql')
const path = require('path')
const sql = require('../routehandles/mysqlhandle');
const { request } = require('http');


router.post('/processfachu',async (req,res) => {
    const params = req.body;
    var b = await sql.sPushTableBytasknum(params.tasknum);
    console.log("输出任务编号")
    console.log(params.tasknum)
    console.log("看这儿")
        console.log(b)
        console.log(typeof(b))
        return res.json({b,result:'true'})
})

module.exports = router